<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<HTML>
<head>
    <c:set var="root" value="${pageContext.request.contextPath}"/>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="${root}/css/Style1.css" rel="stylesheet" type="text/css" />
    <link href="${root}/css/common.css" rel="stylesheet" type="text/css"/>
    <script src="${root}/js/public.js"></script>
    <script>
        function CategorySecondAddUI() {
            window.location.href="${root}/CategorySecondAddUI";
        }
    </script>
</head>
<body>
<br>
<form id="Form1" name="Form1" action="" method="post">
    <table cellSpacing="1" cellPadding="0" width="100%" align="center" bgColor="#f5fafe" border="0">
        <TBODY>
        <tr>
            <td class="ta_01" align="center" bgColor="#afd1f3">
                <strong>二级分类列表</strong>
            </td>
            <tr>
                 <td class="ta_01" align="right">
                        <button type="button" id="add" value="添加" class="button_add" onclick="CategorySecondAddUI()">
                            &#28155;&#21152;
                        </button>
                 </td>
            </tr>


        </tr>
        <tr>
            <td class="ta_01" align="center" bgColor="#f5fafe">
                <table cellspacing="0" cellpadding="1" rules="all"
                       bordercolor="gray" border="1" id="DataGrid1"
                       style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 100%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
                    <tr style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">

                        <td align="center">
                            序号
                        </td>
                        <td align="center">
                            二级分类名
                        </td>
                        <td align="center">
                            编辑
                        </td>
                        <td align="center">
                            删除
                        </td>

                        <c:forEach var="list" items="${list}" varStatus="status">
                                <tr onmouseover="this.style.backgroundColor = 'white'"
                                    onmouseout="this.style.backgroundColor = '#F5FAFE';">
                                    <td style="CURSOR: hand; HEIGHT: 22px" align="center">
                                        ${status.count}
                                    </td>
                                    <td style="CURSOR: hand; HEIGHT: 22px" align="center" width="50%">
                                        ${list.csname}
                                    </td>
                                    <td style="CURSOR: hand; HEIGHT: 22px" align="center">
                                        <a href="${root}/CategorySecondEditUI?csid=${list.csid}"> 编辑 </a>
                                    </td>

                                    <td align="center" style="HEIGHT: 22px">
                                        <a href="${root}/CategorySecondDelete?csid=${list.csid}" onclick="return confirm('确定要删除吗？')" >
                                            <img src="${root}/images/i_del.gif" width="16" height="16" border="0" style="CURSOR: hand">
                                        </a>
                                    </td>
                                </tr>
                        </c:forEach>





                </table>
            </td>
        </tr>
        </TBODY>
    </table>

</form>
</body>
</HTML>
